Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stack-source-map

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stack-source-map

Add source map support for error stack (Chrome only)

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
680
increased by3.34%
Maintainers
1
Weekly downloads
 
Created
Source

Stack-source-map

Attamp to make error stack works with source-map in browser, only Chrome supportted yet. screen shot 2015-11-24 at 00 23 59

The code mostly from evanw/node-source-map-support, but simplified to works with browser only and fixed to support all source map mode of webpack

Basically, it's some kind hack of v8 message.js

Works with babel and webpack :smiley:

Install

npm install stack-source-map

Usage

require('stack-source-map')()

entry for webpack

var entry = [
  'stack-source-map/register'
  // other entries
  ...
]

Use standalond file

Include file stacksourmap.js in your page, and add one line code:

StackSourceMap()

API

stackSourceMap([option])

  • option.empty empty cache between operations if true, default false

Test babel with webpack

npm install
node server
open http://localhost:8080/bundle

License

MIT

Keywords

FAQs

Package last updated on 10 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc